{% extends 'base.html' %}

{% block title %}确认删除年级日程{% endblock %}

{% block content %}
<div class="container mt-4">
    <div class="row">
        <div class="col-md-8 offset-md-2">
            <h1 class="mb-4">确认删除年级日程</h1>
            <div class="alert alert-danger" role="alert">
                您确定要删除以下年级日程吗？此操作不可撤销。
            </div>
            <div class="card mb-4">
                <div class="card-body">
                    <h5 class="card-title">ID: {{ schedule.id }}</h5>
                    <p class="card-text"><strong>年级:</strong> {{ schedule.grade.name }}</p>
                    <p class="card-text"><strong>学期:</strong> {{ schedule.semester.name }}</p>
                    <p class="card-text"><strong>日期:</strong> {{ schedule.date }}</p>
                    <p class="card-text"><strong>是否上课:</strong> {{ schedule.get_is_class_day_display }}</p>
                </div>
            </div>
            <form method="post">
                {% csrf_token %}
                <button type="submit" class="btn btn-danger">确认删除</button>
                <a href="{% url 'core:grade_schedule_detail' schedule.id %}" class="btn btn-secondary">取消</a>
            </form>
        </div>
    </div>
</div>
{% endblock %}